import { createRouter, createWebHashHistory } from 'vue-router'


const routes = [

  {
    path: '/',
    name: 'Login',

    component: () => import(/* webpackChunkName: "login" */ '../views/Login.vue')
  },
  {
    path: '/home',
    name: 'Home',

    component: () => import(/* webpackChunkName: "about" */ '../views/Home.vue'),
    children:[
      {
        path: '/welcome',
        name: 'Welcome',

        component: () => import(/* webpackChunkName: "about" */ '../views/Welcome.vue')
      },
      {
        path: '/first',
        name: 'First',
        
        component: () => import(/* webpackChunkName: "about" */ '../views/First.vue')
      },
      {
        path: '/second',
        name: 'Second',
        
        component: () => import(/* webpackChunkName: "about" */ '../views/Second.vue')
      },
      {
        path: '/third',
        name: 'Third',
        
        component: () => import(/* webpackChunkName: "about" */ '../views/Third.vue')
      },
      {
        path: '/fourth',
        name: 'Fourth',
        
        component: () => import(/* webpackChunkName: "about" */ '../views/Fourth.vue')
      }
    ]
    
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'Error',
    component: () => import(/* webpackChunkName: "about" */ '../views/Error.vue')
  }
  
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
